package com.ice.app.base.authorization.config;

import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * 密码
 * @author Palo
 *
 */
public class IcePasswordEncoder implements PasswordEncoder {

	@Override
	public String encode(CharSequence rawPassword) {
		return (String) rawPassword;
	}

	@Override
	public boolean matches(CharSequence rawPassword, String encodedPassword) {
		return encodedPassword.equals(rawPassword);
	}
}
